<html>
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="//at.alicdn.com/t/font_3mj1em3wq7b0ggb9.css" />
    <link rel="stylesheet" href="/static/plugins/layui-v2.1.4/css/layui.css" />
    <link rel="stylesheet" href="/static/plugins/ueditor1.4.3.3/themes/default/css/ueditor.min.css" />

</head>
<body>

<h1>${code}</h1>
<form id="formcorp">
<div class="layui-form-item">
    <input type="hidden" name="id" id="id" value="">
    <label class="layui-form-label">*登录名</label>
    <div class="layui-input-inline" id="appendInput">
        <input type="text" name="loginname" id="loginname" lay-filter="loginname" lay-verify="loginname" autocomplete="off" placeholder="登录名" class="layui-input">
    </div>
    <label class="layui-form-label">密码</label>
    <div class="layui-input-inline">
        <input type="password" name="password" id="password" lay-verify="pass" placeholder="请输入密码" autocomplete="off" maxlength="20" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label"></label>
    <div class="layui-input-inline">
        <button class="layui-btn"  type="submit"  lay-filter="expertadd" id="submitA">立即提交</button>
        <button type="button" class="layui-btn layui-btn-primary" onclick="show()">重置</button>
   <!--  <button class="layui-btn"  type="button"  lay-filter="expertadd" onclick="save()">提交</button>-->
    </div>
</div>
</form>
<div id="showContainer">
</div>
<script id="container" name="content" type="text/plain">
        	这里写你的初始化内容
   	 	</script>
<script src="/static/plugins/layui-v2.1.4/layui.js"></script>
<script src="/static/plugins/config.js"></script>

<script>
    layui.use([
            'layer',
            "validator",
            "niceValidatorCN",
             "ueditorConfig","ueditorCN","ueditor",
    ], function() {
        var $ = layui.jquery,
                roolurl = "http://" + window.location.host,
                urlObj = {
                    getUser: roolurl + "/user/getUser"

                };

        $(function() {

        alert(compileStr("122"));
            $("#submitA").click(function() {
                $('#formcorp').validator({
                    fields: {
                        'loginname': '运营者姓名:required;loginname;'

                    },
                    valid: function(form){


                    }
                });
            });



        })
     /*   var ue =UE.getEditor('container', {
            autoHeight: true
        });*/

       /* var html = "";
        function save(){
            html =  ue.getContent();
            alert("保存成功");
        }
        save();
        function show(){
            $("#showContainer").html(html);
            alert("显示成功");
        }
        show();*/
    })







</script>
</body>
</html>